package com.crawler.waf.exceptions.extendExceptions;

import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;

import com.crawler.waf.exceptions.messages.ErrorMessage;
/**
 * 在进行认证过程中
 *
 */
@SuppressWarnings("serial")
public class UcAuthenticationException extends AuthenticationException implements WafExceptionSupport{

	private ErrorMessage errorMessage;
	private HttpStatus status;
	
	public UcAuthenticationException(ErrorMessage message,HttpStatus status) {
		super(message.getMessage());
		this.errorMessage = message;
		this.status = status;
	}

	@Override
	public ErrorMessage getErrorMessage() {
		return errorMessage;
	}
	@Override
	public HttpStatus getStatus() {
		return status;
	}

	

}
